package com.wx.gof.pattern.structural.proxy;

/**
 * @ClassName Jay
 * @Author wx
 * @Description 周杰伦-目标对象(被代理对象)
 * @Date 2018-12-11-22:33
 */
public class Jay implements Person, Singer {

    public final static String SONG_NAME_1 = "双击棍";
    public final static String SONG_NAME_2 = "稻香";
    public final static String SONG_NAME_3 = "其他";

    @Override
    public int life() {
        System.out.println("与大美女昆凌幸福快乐的在一起了");
        return 100;
    }

    @Override
    public void sing(String songName) {
        switch (songName) {
            case SONG_NAME_1:
                System.out.println("双截棍:嘿哈嘿哈");
                break;
            case SONG_NAME_2:
                System.out.println("稻香歌曲:对这个世界如果你有太多的抱怨");
                break;
            default:
                System.out.println("蒲公英的约定:小学篱芭旁的蒲公英 是记忆里有味道的风景");
                break;
        }
    }

    @Override
    public void sign() {
        System.out.println("与各大公司签约");
    }

    @Override
    public void work() {
        System.out.println("参加了中国好声音");
    }
}
